import java.util.Comparator;
public class ComMark implements Comparator<Stu> {
    @Override
    public int compare(Stu stu1, Stu stu2){
        return (int)(stu1.getTotalScore()-stu2.getTotalScore());
    }
}